package cn.cupster.motionlayoutshare.example

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.constraintlayout.motion.widget.MotionLayout
import cn.cupster.motionlayoutshare.R

/**
 * 公告、通知
 */
class PublicNoticeActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_public_notice)

        val motionLayout = findViewById<MotionLayout>(R.id.motionLayout)
        motionLayout.postDelayed({
           motionLayout?.performClick()
        }, 2000)
    }
}